using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.EntityFrameworkCore.Storage;

namespace Abp.EntityFrameworkCore;

public static class DatabaseFacadeExtensions
{
    public static bool IsRelational(this DatabaseFacade database)
    {
        return database.GetInfrastructure().GetService<IRelationalConnection>() != null;
    }
}